package com.meta.nd.service;

import com.meta.common.CommonInfo;
import com.meta.nd.vo.ListQueryCondition;
import com.meta.nd.vo.ListQueryResult;
import com.meta.nd.vo.Nv;

import java.util.List;



public interface NvService {
	Nv initNv( CommonInfo commonInfo,String ndCode);
	long saveNv(CommonInfo commonInfo,Nv nv );
	void saveNvs(CommonInfo commonInfo, List<Nv> nvs );
	Nv getNv(CommonInfo commonInfo,String ndCode, long id);
	Nv getSingleNvWithoutFv(CommonInfo commonInfo, String ndCode, long id);
	Nv getNvByCode(CommonInfo commonInfo,String code, String name, String ndCode );
	Nv copyNvById(CommonInfo commonInfo,String ndCode, long id);
	Nv copyNv( CommonInfo commonInfo,Nv nv);
	Object getFvByExpression( String expression, String ndCode);
	Nv getParentNvCodeAndNdCode(CommonInfo commonInfo,String code, String codeFdName, String ndCode);
	long getParentNvIdCodeAndNdCode(CommonInfo commonInfo,String code, String codeFdName, String ndCode);
	int deleteNv(CommonInfo commonInfo,String ndCode, long id);
	int deleteNvs(CommonInfo commonInfo,String ndCode, List<Long> ids);
	ListQueryResult<Nv> filterNvs(CommonInfo commonInfo,ListQueryCondition condition );
	void internalSaveNvs(CommonInfo commonInfo, List<Nv> nvs );
	void resetId(CommonInfo commonInfo,String ndCode);
}
